package com.sphd.emanu.activity.goodslist;

import com.sphd.emanu.mvp.BasePresenter;
import com.sphd.emanu.mvp.BaseView;
import com.sphd.emanu.pojo.goods.Commodity;

import java.util.List;

import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * @Author Hu
 * @Time 2017/5/27 -- 13:48.
 * @Email 87683202@qq.com
 */

public class GoodslistContract {
    interface View extends BaseView {

        void setList(List<Commodity> commodityList);

        void setDelRes(int delRes, SweetAlertDialog sweetAlertDialog, int pos);
    }

    interface  Presenter extends BasePresenter<View> {
        void getList(int id);
       void delGood(Integer goodsEntityId, SweetAlertDialog sweetAlertDialog, int pos);
    }
}
